home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / basic / qbnws105.zip / ZV.ZIP / DIXARC02.INC next >
Text File  |  1990-10-24  |  4KB  |  109 lines

  1. 'Compression file types from Dick Dennison 
  2. 'Use with credit        Ci$ID - 74270,3636
  3.  
  4. 'zip file stuff
  5. TYPE central             'central directory record
  6.     sig AS LONG          'zip signature  hex06054B50
  7.     vers AS INTEGER      'version made by
  8.     extvers AS INTEGER   'version needed to extra
  9.     bitflag AS INTEGER   'general purpose bitflag
  10.     compmeth AS INTEGER  'compression method
  11.     modtime AS INTEGER   'packed time
  12.     moddate AS INTEGER   'packed date
  13.     crc AS LONG          'crc 32 bit
  14.     compsize AS LONG     'compressed size
  15.     uncompsize AS LONG   'oldsize
  16.     fnamelen AS INTEGER  'file name length
  17.     extralen AS INTEGER  'extra field length
  18.     commentlen AS INTEGER'comment field length
  19.     disknum AS INTEGER   'disk number in this archive
  20.     infileattr AS INTEGER'int file attribute
  21.     extfileattr AS LONG  'ext file attribute
  22.     offsethead AS LONG   'offset of local header
  23.     filename AS STRING * 12
  24. END TYPE
  25. TYPE dirrec              'end of central directory record
  26.     sig AS LONG          'signature hex02014B50
  27.     n1num AS INTEGER     
  28.     n2num AS INTEGER
  29.     n3num AS INTEGER
  30.     num AS INTEGER       'number of records on central dir
  31.     dirlen AS LONG       'size of central directory
  32.     offset AS LONG       'offset of central directory
  33.     commentlen AS INTEGER'length of zip comment
  34. END TYPE
  35. TYPE buftype
  36.     lin AS LONG          'buffer for signature comps
  37. END TYPE
  38.  
  39. 'lzh file stuff
  40. TYPE head1
  41.     hsz AS STRING * 1   'header size
  42.     CKS AS STRING * 1   '16 bit checksum
  43. END TYPE
  44.  
  45. TYPE Head2
  46.     mtd AS STRING * 5   'method
  47.     nsz AS LONG         'new size
  48.     osz AS LONG         'old size
  49.     tim AS INTEGER      'packed time
  50.     dat AS INTEGER      'packed date
  51.     ATR AS INTEGER      'file attribute
  52.     fnl AS STRING * 1   'file name length
  53. END TYPE
  54. TYPE head3
  55.     crc AS INTEGER      'CRC  
  56. END TYPE
  57.  
  58. 'arc file stuff
  59. TYPE header
  60.     arcid AS INTEGER         '1D
  61.     filename AS STRING * 13  'filename
  62.     newsize AS LONG          'size now
  63.     adate AS INTEGER         'packed date
  64.     atime AS INTEGER         'packed time
  65.     crc AS INTEGER           'CRC
  66.     oldsize AS LONG          'uncompressed size
  67. END TYPE
  68.  
  69. 'zoo file stuff
  70. TYPE zoomaster              'master header at beginning of file
  71.     zoohead AS STRING * 20
  72.     zoosig AS STRING * 8    'DCA7C4FD  signature
  73.     zoo1ptr AS LONG 
  74.     zooques AS LONG 
  75.     zoomakver AS STRING * 1 'zoo version made by
  76.     zoominver AS STRING * 1 'minimum version needed to extract
  77. END TYPE
  78. TYPE zoofile                'file header
  79.     zoofsig AS STRING * 8   'DCA7C4FD  signature
  80.     zooftyp AS STRING * 1   
  81.     zoofcmp AS STRING * 1   'compression method
  82.     zoofnxh AS LONG         'location of next header
  83.     zoofcur AS LONG         
  84.     zoofdat AS INTEGER      'packed date
  85.     zooftim AS INTEGER      'packed time
  86.     zoofcrc AS INTEGER      'crc
  87.     zoofosz AS LONG         'old size
  88.     zoofnsz AS LONG         'new size
  89.     zoofmver AS STRING * 1  
  90.     zoofmin AS STRING * 1
  91.     zoofdel AS STRING * 1
  92.     zoofcmtp AS LONG        'comment pointer
  93.     zoofcmtl AS INTEGER     'comment length
  94.     extra AS STRING * 1
  95.     zoofnam AS STRING * 13  'filename
  96. END TYPE
  97.  
  98. 'pak file stuff
  99. TYPE paktype
  100.     sig AS STRING * 1       '1 byte always 26 
  101.     version AS STRING * 1   '1 byte) - type of compression used.
  102.     filename AS STRING * 13 '(13 bytes)  - an ASCIIZ string.
  103.     size AS LONG            '(4 bytes) giving the current file size.
  104.     Date AS INTEGER         '(2 bytes)   - packed date
  105.     Time AS INTEGER         '(2 bytes)   - packed time
  106.     CRC AS INTEGER          '(2 bytes) the CRC checksum for the expanded file.
  107.     length AS LONG          '(4 bytes) - original length of file
  108. END TYPE
  109.